class UsersController < ApplicationController
  before_filter :login_required, :only => [ :new, :create ]
  
  def index
  end
  
  def new
    @user = User.new
  end
  
  def create
    @user = User.new(params[:user])
    
    if @user.save
      flash[:notice] = "User creation succeeded"
      redirect_to users_path
    else
      render :action => 'new'
    end
  end
end 
